


ALSA_INCLUDE := /mmt/rk3308_os/buildroot/output/rockchip_rk3308_release/host/aarch64-rockchip-linux-gnu/sysroot/usr/include/
ALSA_LIB := /mmt/rk3308_os/buildroot/output/rockchip_rk3308_release/target/usr/lib

CC := /mmt/rk3308_os/buildroot/output/rockchip_rk3308_release/host/bin/aarch64-linux-gcc
CXX := /mmt/rk3308_os/buildroot/output/rockchip_rk3308_release/host/bin/aarch64-linux-g++


all: clean app

app:
	${CC} -D=HUAZHAO_T30 -o alsa_capture_demo.elf capture.c -I$(ALSA_INCLUDE) -L$(ALSA_LIB) -lasound -lpthread
.PHONY: clean

clean:
	rm -rf  *.o *.elf